import request from '../utils/request'
// 搜索联想菜单
const suggestListAPI = ({ keyword }) => {
  return request({
    method: 'GET',
    url: '/v1_0/suggestion',
    params: {
      q: keyword
    }
  })
}

// 获取搜索结果列表 默认值是1，
const getSearchResultListAPI = ({ keyword, page = 1 }) => {
  return request({
    method: 'GET',
    url: '/v1_0/search',
    params: {
      q: keyword,
      page: page
    }
  })
}

export {
  suggestListAPI,
  // searchResultListAPI,
  getSearchResultListAPI
}
